package com.ruoyi.cms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章图片对象 cms_image
 * 
 * @author fyliu
 * @date 2025-04-14
 */
public class CmsImage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 本地地址 */
    @Excel(name = "本地地址")
    private String localFilePath;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String url;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setLocalFilePath(String localFilePath) 
    {
        this.localFilePath = localFilePath;
    }

    public String getLocalFilePath() 
    {
        return localFilePath;
    }

    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("localFilePath", getLocalFilePath())
            .append("url", getUrl())
            .toString();
    }
}
